package com.michael.study.network;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.util.List;

import okhttp3.Call;
import okhttp3.EventListener;
import okhttp3.Protocol;

/**
 * Description:
 *
 * <p>Created by liuguoquan on 2020/8/5 19:46.
 */
class HttpEventListener extends EventListener {

    @Override
    public void callStart(@NotNull Call call) {
        super.callStart(call);
    }

    @Override
    public void dnsStart(@NotNull Call call, @NotNull String domainName) {
        super.dnsStart(call, domainName);
    }

    @Override
    public void dnsEnd(
            @NotNull Call call,
            @NotNull String domainName,
            @NotNull List<InetAddress> inetAddressList) {
        super.dnsEnd(call, domainName, inetAddressList);
    }

    @Override
    public void connectStart(
            @NotNull Call call,
            @NotNull InetSocketAddress inetSocketAddress,
            @NotNull Proxy proxy) {
        super.connectStart(call, inetSocketAddress, proxy);
    }

    @Override
    public void connectFailed(
            @NotNull Call call,
            @NotNull InetSocketAddress inetSocketAddress,
            @NotNull Proxy proxy,
            @Nullable Protocol protocol,
            @NotNull IOException ioe) {
        super.connectFailed(call, inetSocketAddress, proxy, protocol, ioe);
    }

    @Override
    public void connectEnd(
            @NotNull Call call,
            @NotNull InetSocketAddress inetSocketAddress,
            @NotNull Proxy proxy,
            @Nullable Protocol protocol) {
        super.connectEnd(call, inetSocketAddress, proxy, protocol);
    }

    @Override
    public void callFailed(@NotNull Call call, @NotNull IOException ioe) {
        super.callFailed(call, ioe);
    }

    @Override
    public void callEnd(@NotNull Call call) {
        super.callEnd(call);
    }
}
